* {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fc() {
  display: flex;
  justify-content: center;
  align-items: center;
}
.fb() {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fa() {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

body {
  background-image: url(../images/111.jpg);
}
.opacityBox {
  width: 100vw;
  height: 450px;
  background-color: rgba(47, 72, 135, 0.2);
  h1 {
    font-size: 36px;
    color: aliceblue;
    position: absolute;
    position: absolute;
    top: 300px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
  }
  nav {
    width: 1200px;
    height: 60px;
    // background-color: #999;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    .fb();
    img {
      width: 200px;
      height: 100%;
      margin-right: 30px;
    }
    ul {
      position: relative;
      flex: auto;
      height: 100%;
      //   background-color: antiquewhite;
      .fb();
      li {
        cursor: pointer;
        flex: 1;
        .fc();
        font-size: 18px;
        font-weight: 900;
        color: aliceblue;
      }
      .hoverDiv {
        opacity: 0;
        position: absolute;
        left: 0;
        top: 60px;
        width: 121.25px;
        height: 5px;
        background-color: rgb(68, 123, 232);
        z-index: -1;
        transition: 0.3s;
      }

      // ?鼠标跟随导航封装
      @num: 121.25px;
      .hoverDiv(@DivNum) {
        //.要加花括号
        li:nth-child(@{DivNum}):hover ~ .hoverDiv {
          opacity: 1;
          left: @num * (@DivNum - 1);
        }
      }

      .hoverDiv(1);
      .hoverDiv(2);
      .hoverDiv(3);
      .hoverDiv(4);
      .hoverDiv(5);
      .hoverDiv(6);
      .hoverDiv(7);
      .hoverDiv(8);
    }
  }
}

article {
  width: 100vw;
  height: 2.5rem;
  background-color: aliceblue;
  .fc();
  .context {
    width: 60%;
    height: 80%;
    // background-color: aqua;
    display: flex;

    img {
      width: 50%;
      height: 100%;
      background-color: rgb(171, 146, 113);
    }
    .right {
      padding-top: 0.2rem;
      padding-left: 0.2rem;
      width: 50%;
      height: 100%;
      background-color: rgb(247, 247, 247);
      h5,
      h3,
      p {
        margin: 10px 10px;
      }
    }
  }
}

@media (max-width: 1000px) {
  article {
    height: 400px;
    .context {
      width: 80%;
    }
  }
}

@media (max-width: 790px) {
  article {
    .context {
      display: block;
      width: 60%;

      img {
        width: 100%;
        height: 60%;
        background-color: rgb(171, 146, 113);
      }
      .right {
        padding-top: 20px;
        padding-left: 40px;
        width: 100%;
        height: 40%;
        background-color: rgb(247, 247, 247);

        h3 {
          font-size: 17px;
          margin: 0;
        }

        p,
        h5 {
          font-size: 12px;
          margin: 5px 10px;
        }
      }
    }
  }
}

footer {
  width: 100%;
  height: 400px;
  background-color: rgb(42, 46, 49);

  main {
    width: 1200px;
    height: 300px;
    margin: 0 auto;
    border-bottom: 1px solid rgb(71, 71, 71);

    .bottom-nav1 {
      width: 100%;
      height: 100px;
      display: flex;
      justify-content: space-between;
      align-items: center;

      .left {
        width: 200px;
      }

      .right {
        width: 600px;

        ul {
          display: flex;
          justify-content: space-between;
        }
      }
    }

    .bottom-nav2 {
      width: 100%;
      height: 200px;

      ul {
        width: 100%;
        height: 200px;
        display: flex;
        justify-content: space-between;
        align-items: center;

        li {
          div {
            h3 {
              color: white;
              font-size: 20px;
              padding-top: 5px;
            }
          }

          &:nth-child(4) {
            i {
              width: 140px;
              height: 140px;
            }
          }
        }
      }
    }
  }

  .bottom-text {
    width: 1200px;
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    margin: 0 auto;

    p {
      color: white;

      a {
        color: white;
      }
    }
  }
}

.mobile-nav {
  display: none;
}

.right-float {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  position: fixed;
  right: 30px;
  bottom: 100px;
  background-color: rgb(16, 16, 16);
  text-align: center;

  svg {
    margin-top: 5px;
  }
}
